package com.suyafei.service;

import com.suyafei.model.OrderMessage;
import com.suyafei.request.ConfirmOrderRequest;
import com.suyafei.util.JsonData;
import org.springframework.data.repository.query.Param;

/**
 * @program: suyafei-1024-shop
 * @description
 * @author: luffy
 * @create: 2021-03-15 10:15
 */
public interface ProductOrderService {
    /**
     *提交订单
     * @param confirmOrderRequest
     * @return
     */
    JsonData confirmOrder(ConfirmOrderRequest confirmOrderRequest);

    /**
     * 查询订单状态
     * @param outTradeNo
     * @return
     */
    String queryProductOrder(String outTradeNo);

    /**
     * 关闭订单
     * @param orderMessage
     * @return
     */
    boolean closeProductOrder(OrderMessage orderMessage);
}
